#include "UdpServer.hpp"

// ./server_udp localport
int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        cerr << "Usage: " << argv[0] << " localport" << endl;
        Die(USAGE_ERR);
    }
    // string ip = argv[1];
    uint16_t port = stoi(argv[1]);

    ENABLE_CONSOLE_LOG();
    unique_ptr<UdpServer> svr_ptr = make_unique<UdpServer>(port); 
    svr_ptr->InitServer();
    svr_ptr->Start();
}